﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Uckaraoke.ascx.cs" Inherits="Karaoke_UcControl_Uckaraoke" %>
<table style="width: 100%">
    <asp:ListView ID="lvKaraoke" runat="server" GroupItemCount="4" GroupPlaceholderID="layoutTemplate"
        ItemPlaceholderID="groupPlaceholder" OnItemDataBound="lvKaraoke_ItemDataBound"
        OnPagePropertiesChanged="lvKaraoke_PagePropertiesChanged">
        <LayoutTemplate>
            <table id="layoutTemplate" runat="server" border="0" cellpadding="0" cellspacing="0">
            </table>
        </LayoutTemplate>
        <GroupTemplate>
            <tr>
                <div id="groupPlaceholder" runat="server">
                </div>
            </tr>
        </GroupTemplate>
        <ItemTemplate>
            <td style="padding: 0 0 10px 5px;">
                <asp:HyperLink ID="lnkItemDetails" runat="server" NavigateUrl="">
                    <div class="productItemStyle" onmouseover="javascript:this.style.background='#e5f4ff';this.style.border='solid 1px #3399cc';"
                        onmouseout="javascript:this.style.background='#FFFFFF';this.style.border='solid 1px #cccccc';this.style.color='#353f45';"
                        price='<%# Eval("Price") %>' matchedprice='0' code='<%# Eval("IDMenu") %>'>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="center">
                                    <table>
                                        <tr>
                                            <tr>
                                                <td align="center" id="rollover">
                                                    <a id="A1" rel="lightbox-mygallery" runat="server" title='<%# Eval("MenuName") %>'
                                                        href='<%# "~/ImageProcess.ashx?file=" + "~/Admin/img/ImageMenu/" + Eval("ImageURL")  %>'>
                                                        <asp:Image ID="img" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/img/ImageMenu/" + Eval("ImageURL") + "&width=130&heigh=120&dd=true" %>'
                                                            AlternateText="No Image" />
                                                    </a>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    <p>
                                                        <asp:HyperLink ID="hyp" runat="server" Text='<%# Eval("MenuName") %>'></asp:HyperLink>
                                                    </p>
                                                    <p>
                                                        <asp:Label ID="lb" runat="server" Text='<%# Eval("ListMenu") %>'></asp:Label></p>
                                                    <p>
                                                        <span style="color: #d80e01; font-weight: bold; font-size: 20px">
                                                            <asp:Label ID="lbPrice" runat="server" Text="Label" ForeColor="#d80e01"></asp:Label>
                                                            <%# DataBinder.Eval(Container.DataItem, "Price")%>
                                                        </span>
                                                    </p>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    <%--<asp:UpdatePanel ID="up1" runat="server">
                                                        <ContentTemplate>
                                                            <table border="0" cellspacing="3" cellpadding="0">
                                                                <tr>
                                                                    <td width="1" class="imglink">
                                                                        <asp:HyperLink ID="HyperLink2" runat="server" ToolTip="Add Menu">
                                                                            <asp:ImageButton ID="btnImage" runat="server" CommandName="AddMenu" CommandArgument='<%# Eval("IDMenu") %>'
                                                                                ImageUrl="~/Wedding/images/add-notes.png" Width="32px" Height="32px" OnClick="btnImage_Click" />
                                                                        </asp:HyperLink>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </ContentTemplate>
                                                        <Triggers>
                                                            <asp:AsyncPostBackTrigger ControlID="btnImage" EventName="Click" />
                                                        </Triggers>
                                                    </asp:UpdatePanel>--%>
                                                </td>
                                            </tr>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:HyperLink>
            </td>
        </ItemTemplate>
    </asp:ListView>
</table>
